package ua.kharkov.khpi.tarasenko.bach.core.order;

import java.io.Serializable;
import java.util.ArrayList;

import ua.kharkov.khpi.tarasenko.bach.dao.core.order.OrderItemDTO;

public class UsersOrdersListBean implements Serializable {
	private static final long serialVersionUID = -5382369157515437231L;

	private int orderId;
	private String userName;
	private java.util.Date orderDate;
	private OrderStatus status;
	private ArrayList<OrderItemDTO> itemsInOrder;
	

	public java.util.Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(java.util.Date orderDate) {
		this.orderDate = orderDate;
	}

	public OrderStatus getStatus() {
		return status;
	}

	public void setStatus(OrderStatus status) {
		this.status = status;
	}
	
	public void setStatus(int statusId) {
		this.status = OrderStatus.getOrderStatusById(statusId);
	}
	
	public int getOrderId() {
		return orderId;
	}
	
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public ArrayList<OrderItemDTO> getItemsInOrder() {
		return itemsInOrder;
	}

	public void setItemsInOrder(ArrayList<OrderItemDTO> itemsInOrder) {
		this.itemsInOrder = itemsInOrder;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}
